package com.g0dkar.leet.core.rest.responseObjects;

public class RestResponse {
	public static final int STATUS_OK = 0;
	public static final int STATUS_UNKNOWN_ERROR = -1;
	public static final int STATUS_EXCEPTION = 1;
	
	public static abstract class Crud {
		public static final int STATUS_NOT_FOUND = 1000;
		
		private static abstract class CrudResponse {
			private int status;
			private Object object;
			
			public int getStatus() {
				return status;
			}
			
			public void setStatus(int status) {
				this.status = status;
			}
			
			public Object getObject() {
				return object;
			}
			
			public void setObject(Object object) {
				this.object = object;
			}
		}
		
		public static class Create extends CrudResponse {
			public Create(int status, Object newObject) {
				setObject(newObject);
			}
		}
		
		public static class View extends CrudResponse {
			public View(int status, Object newObject) {
				setObject(newObject);
			}
		}
	}
}
